import Home from "../view/Home.vue";
import Login from "../view/user/Login.vue";
import Userlist from "../view/user/UserList.vue";
import EditInfo from "../view/user/EditInfo.vue";
import Cate from "../view/cate/cate.vue";
import Upload from "../view/upload/upload.vue";
import Comment from "../view/comment/comment.vue";
import UpdatePass from "../view/user/UpdatePass.vue";

export const routes = [
    { 
        path:'/',component:Home
    },
    { 
        path:'/login',component:Login
    },
    {
        path:'/userlist',component:Userlist
    },
    {
        path:'/editinfo',component:EditInfo
    },
    {
        path:'/updatepass',component:UpdatePass
    },
    {
        path:'/cate', component:Cate
    },
    {
        path:'/upload',component:Upload
    },
    {
        path:'/comment',component:Comment
    },
    {
        path:'*',redirect:'/'
    }
]